<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns="http://www.w3.org/1999/xhtml"
  exclude-result-prefixes="">
  
  <xsl:output method="html" encoding="UTF-8" />
  
  <xsl:param name="p1"/>
  <xsl:param name="p2"/>

  <xsl:template match="/">
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>
          <xsl:text>p1=</xsl:text>
          <xsl:value-of select="$p1" />
          <xsl:text>;p2=</xsl:text>
          <xsl:value-of select="$p2" />
        </title>
      </head>
      <body>
        <xsl:apply-templates select="*"/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="*">
    <p>
      <xsl:for-each select="ancestor::*">
        <xsl:text>&#160;&#160;</xsl:text>
      </xsl:for-each>
      <xsl:value-of select="name(.)"/>
    </p>
  </xsl:template>

</xsl:stylesheet>
